const Imginfo = require('../../db').Imginfo

module.exports = {
    async find(ctx,next){
        let id = ctx.params.imgid
        try{
            let imgData = await Imginfo.find({"id":id},null)
            
            ctx.body = {
                code: 200,
                msg: "获取信息成功",
                list: imgData
            }
        } catch(e){
            ctx.body = {
                code: 500,
                msg: "获取信息失败，服务器异常，请稍后再试"
            }
        }
    }
}